import service from '@/utils/axios'

export interface IGroupParams {
  house_name?: string
  province?: string
  city?: string
  country?: string
  group_status?: string
  status?: string
}
export const GET_GROUP = (params: IGroupParams) => {
  return service({
    url: '/api/v1/group',
    method: 'get',
    params
  })
}
export const UPDATE_GROUP = ({ id, ...data }: any) => {
  console.log(data)
  return service({
    url: `/api/v1/group/${id}`,
    method: 'put',
    data
  })
}
